package com.lrkj.smartservice.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 新闻分类对象 tm_press_type
 * 
 * @author yajun_ren
 * @date 2021-04-02
 */
public class PressType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String pressTypeId;

    /** 名称 */
    @Excel(name = "名称")
    private String pressTypeName;

    /** 权重 */
    @Excel(name = "权重")
    private String weight;

    /** 数据状态（0正常 1停用） */
    @Excel(name = "数据状态", readConverterExp = "0=正常,1=停用")
    private String statusCd;

    /** 创建者编码 */
    @Excel(name = "创建者编码")
    private String createByCode;

    /** 更新者编码 */
    @Excel(name = "更新者编码")
    private String updateByCode;

    public void setPressTypeId(String pressTypeId) 
    {
        this.pressTypeId = pressTypeId;
    }

    public String getPressTypeId() 
    {
        return pressTypeId;
    }
    public void setPressTypeName(String pressTypeName) 
    {
        this.pressTypeName = pressTypeName;
    }

    public String getPressTypeName() 
    {
        return pressTypeName;
    }
    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }
    public void setStatusCd(String statusCd) 
    {
        this.statusCd = statusCd;
    }

    public String getStatusCd() 
    {
        return statusCd;
    }
    public void setCreateByCode(String createByCode) 
    {
        this.createByCode = createByCode;
    }

    public String getCreateByCode() 
    {
        return createByCode;
    }
    public void setUpdateByCode(String updateByCode) 
    {
        this.updateByCode = updateByCode;
    }

    public String getUpdateByCode() 
    {
        return updateByCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pressTypeId", getPressTypeId())
            .append("pressTypeName", getPressTypeName())
            .append("weight", getWeight())
            .append("statusCd", getStatusCd())
            .append("createBy", getCreateBy())
            .append("createByCode", getCreateByCode())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateByCode", getUpdateByCode())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
